package c.h.b.c.a;

import c.f.c.a.e;
import c.h.b.d.a.h;
import com.huawei.hms.iap.entity.ProductInfo;
import com.huawei.hms.iap.entity.ProductInfoResult;
import java.util.ArrayList;
import java.util.List;

/* compiled from: lambda */
public final /* synthetic */ class i implements e {
    public final /* synthetic */ h a;

    public /* synthetic */ i(h hVar) {
        this.a = hVar;
    }

    public final void onSuccess(Object obj) {
        h hVar = this.a;
        List<ProductInfo> productInfoList = ((ProductInfoResult) obj).getProductInfoList();
        ArrayList arrayList = new ArrayList();
        for (ProductInfo productInfo : productInfoList) {
            c.h.b.d.a.e eVar = new c.h.b.d.a.e();
            productInfo.getProductName();
            eVar.a = productInfo.getProductId();
            productInfo.getProductDesc();
            eVar.b = productInfo.getPrice();
            eVar.c = productInfo.getOriginalLocalPrice();
            arrayList.add(eVar);
        }
        hVar.c(arrayList);
    }
}
